<?php /* Smarty version 2.6.25, created on 2011-07-11 11:29:37
         compiled from admin/sysadd_food_add.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'admin/sysadd_food_add.htm', 21, false),)), $this); ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/pageheader.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script language="javascript" src="<?php echo $this->_tpl_vars['_DIRURL']; ?>
script/validator.js"></script>
<script language="javascript">
var admin_base_url = "<?php echo $this->_tpl_vars['_BASEURL']; ?>
";
</script>
<form action="?todo=cgi&act=sysuser" method="post"  name="formlist" id="formlist">
  <div id="dataAdd">

<table cellspacing="1" cellpadding="10" border="0" bgcolor="#e2f5bc" align="center" width="96%" style="margin-top: 6px;">
		<tbody><tr>
				<td width="22%" align="right" bgcolor="#f9ffe6" class="main_bleft">菜名:</td>
		        <td width="78%" bgcolor="#ffffff" class="main_bright">
		        <input type="text" name="foodname" size="24" maxlength="16" id="foodname" value="<?php echo $this->_tpl_vars['food']['foodname']; ?>
" dataType="Require" msg="请填写餐馆名称"/>
		          &nbsp;</td>
		</tr>
        
        <tr>
				<td width="22%" align="right" bgcolor="#f9ffe6" class="main_bleft">类别:</td>
		        <td width="78%" bgcolor="#ffffff" class="main_bright"> 
                <span id="SortList"><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['sort'],'selected' => $this->_tpl_vars['food']['sortid'],'name' => 'sort','id' => 'sort'), $this);?>
<a href="javascript:" onclick="SortTable(1);">列表没有?</a></span>
		          <span id="SortAdd" style="display:none;"><input type="text" name="sortname" id="sortname" />
		         
		          <input  name="tijiao3" type="button" id="tijiao3" onclick="AddSort();" value="添加类别"/>
	            <a href="javascript:" onclick="SortTable(0);">取消添加</a></span></td>
		</tr>
        
        <tr>
				<td width="22%" align="right" bgcolor="#f9ffe6" class="main_bleft">单价:</td>
		        <td width="78%" bgcolor="#ffffff" class="main_bright">
		        <input type="text" name="price" size="20" id="price" value="<?php echo $this->_tpl_vars['food']['price']; ?>
" dataType="Require" msg="请填写地址"/>
		          &nbsp;</td>
		</tr>
		  <tr>
				<td colspan="2" align="center" bgcolor="#f9ffe6" class="main_bleft">
                
                <input  name="tijiao" type="button" id="tijiao" onClick="Submit('formlist','<?php echo $this->_tpl_vars['_BASEURL']; ?>
sysadd/foodsave');return false;" value="提交"/>
                <input  name="tijiao2" type="button" id="tijiao2" onclick="jumpto('<?php echo $this->_tpl_vars['_BASEURL']; ?>
sysadd/foodlist/?cid=<?php echo $this->_tpl_vars['cid']; ?>
');return false;" value="返回菜品列表"/>
				  
			    <input type="hidden" name="cid" id="cid" value="<?php echo $this->_tpl_vars['cid']; ?>
">
			    <input type="hidden" name="fid" id="fid" value="<?php echo $this->_tpl_vars['food']['foodid']; ?>
" /></td>
	      </tr>
</tbody></table>

</div>
</form>
<script language="javascript">
function SortTable(show)
{
	if(show)
	{
		document.getElementById("SortAdd").style.display="";
		document.getElementById("SortList").style.display="none";
	}else
	{
		document.getElementById("SortAdd").style.display="none";
		document.getElementById("SortList").style.display="";
	}

}
</script>